package org.bonorsoft.modules.system.service.impl;

import org.bonorsoft.modules.system.entity.SysMessages;
import org.bonorsoft.modules.system.mapper.SysMessagesMapper;
import org.bonorsoft.modules.system.service.ISysMessagesService;
import org.bonorsoft.modules.system.vo.Sign;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.UUID;

/**
 * @Description: 信息通知
 * @Author: WilliamYe
 * @Date:   2021-02-24
 * @Version: V1.0
 */
@Service
public class SysMessagesServiceImpl extends ServiceImpl<SysMessagesMapper, SysMessages> implements ISysMessagesService {
    @Override
    public void saveSign(Sign sign) {
        String uuid = UUID.randomUUID().toString().replaceAll("-", "");
        this.baseMapper.saveSign(uuid,sign.getDzbm(),sign.getLink());
    }
}
